package com.joysuch.wwyt.report.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joysuch.wwyt.report.bean.ReportRiskPointControlListBean;
import com.joysuch.wwyt.report.bean.RiskControlListBean;
import com.joysuch.wwyt.report.bean.dto.ReportDeviceRiskEvaluationRecordDto;
import com.joysuch.wwyt.report.bean.dto.ReportJobRiskEvaluationRecordDto;
import com.joysuch.wwyt.report.bean.dto.ReportRiskAnalyzeListDto;
import com.joysuch.wwyt.report.bean.dto.ReportRiskEvaIdentifyDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Report API  RiskPoint Mapper 接口
 * </p>
 */
@Mapper
public interface ReportRiskControlMapper extends BaseMapper<RiskControlListBean> {

    Page<RiskControlListBean> findByResDepartAndControlLevel(Page<RiskControlListBean> page, Long resDepart, Long controlRiskLevel);

    Page<ReportRiskPointControlListBean> findRiskPointControlByDepart(Page<ReportRiskPointControlListBean> page, Long departId, String pointType);

    Page<ReportJobRiskEvaluationRecordDto> findJobRiskEvaluation(Page<ReportJobRiskEvaluationRecordDto> page, Long departId, Long jobId);

    Page<ReportDeviceRiskEvaluationRecordDto> findDeviceRiskEvaluation(Page<ReportDeviceRiskEvaluationRecordDto> page, Long departId, Long jobId);

    Page<ReportRiskEvaIdentifyDto> findRiskPointEvalAnalyzeByDepart(Page<ReportRiskEvaIdentifyDto> page, Long departId, Long jobId, String pointType);

    Page<ReportRiskAnalyzeListDto> findRiskAnalyzeList(Page<ReportRiskAnalyzeListDto> page, String orgCode, Long tenentId);

    List<String> findResPersonsByPointIdForOld(Long riskPointId);
}
